(()=>{var t=window.VAMTAM=window.VAMTAM||{},n=(t.debounce=function(a,i=300,o=!1){var s;return function(){var e=this,t=arguments,n=o&&!s;clearTimeout(s),s=setTimeout(function(){s=null,o||a.apply(e,t)},i),n&&a.apply(e,t)}},t.offset=function(e){var e=e.getBoundingClientRect(),t=window.pageXOffset||document.documentElement.scrollLeft,n=window.pageYOffset||document.documentElement.scrollTop;return{top:e.top+n,left:e.left+t}},t.scroll_handlers=[],t.latestKnownScrollY=0,!1);t.addScrollHandler=function(e){requestAnimationFrame(function(){e.init(),t.scroll_handlers.push(e),e.measure(t.latestKnownScrollY),e.mutate(t.latestKnownScrollY)})},t.onScroll=function(){t.latestKnownScrollY=window.pageYOffset,n||(n=!0,requestAnimationFrame(function(){for(var e=0;ewindow.innerWidth-document.documentElement.clientWidth);t.waitForLoad=function(e){a?e():window.addEventListener("load",e)},window.addEventListener("load",function(){a=!0})})(),((i,o)=>{function s(n,e,a){requestAnimationFrame(function(){var e=n.offset().top,t=(o.blockStickyHeaderAnimation=!0,l.height()||0),e=e-o.adminBarHeight-t;r=a,window.addEventListener("scroll",m,{passive:!0}),window.scroll({left:0,top:e,behavior:"smooth"}),n.attr("id")&&(history.pushState?history.pushState(null,null,"#"+n.attr("id")):window.location.hash=n.attr("id")),d&&d.classList.remove("mega-menu-open"),c&&c.classList.remove("mega-menu-open")})}var e,r,t,l=i("header.main-header").find(".header-contents"),d=document.getElementById("vamtam-fallback-main-menu-toggle"),c=document.querySelector("#main-menu > .mega-menu-wrap > .mega-menu-toggle"),m=function(){clearTimeout(e),e=setTimeout(n,200)},n=function(){window.removeEventListener("scroll",m,{passive:!0}),o.blockStickyHeaderAnimation=!1,r&&r()};i(document.body).on("click",".vamtam-animated-page-scroll[href], .vamtam-animated-page-scroll [href], .vamtam-animated-page-scroll [data-href]",function(e){var t=i(this).prop("href")||i(this).data("href"),n=i("#"+t.split("#")[1]),a=document.createElement("a");a.href=t,n.length&&a.pathname===window.location.pathname&&(d&&d.classList.remove("mega-menu-open"),c&&c.classList.remove("mega-menu-open"),s(n),e.preventDefault())}),""!==window.location.hash&&(i('.vamtam-animated-page-scroll[href*="'+window.location.hash+'"]').length||i('.vamtam-animated-page-scroll [href*="'+window.location.hash+'"]').length||i('.vamtam-animated-page-scroll [data-href*="'+window.location.hash+'"]').length)&&(0<(t=i(window.location.hash)).length&&i(window).add("html, body, #page").scrollTop(0),setTimeout(function(){s(t)},400))})(jQuery,window.VAMTAM),(s=>{function e(){function e(){var e=window.VAMTAM.isBelowMaxDeviceWidth();i!==e&&(a.forEach(function(e){e.isActive&&e.closeTrigger.click()}),i=e)}function n(e){var t=e.currentTarget;if(s(t).hasClass("elementor-menu-toggle")){var e=s(t).closest(".elementor-row");if((e=e.length?e:s(t).closest(".elementor-container")).hasClass("vamtam-menu-nav-overlay-inside")||(e.addClass("vamtam-menu-nav-overlay-inside"),s(e).find(".vamtam-overlay-element").css("top",s(e)[0].getBoundingClientRect().top+s(e).height()+"px")),e.hasClass("vamtam-overlay-trigger--overlay"))return;e.addClass("vamtam-overlay-trigger--overlay"),a.forEach(function(e){e.overlayTarget!==t&&e.closeTrigger!==t||(e.isActive=!0)})}s("html, body").addClass("vamtam-disable-scroll"),s("#scroll-to-top").addClass("hidden"),s(e=t).hasClass("elementor-menu-toggle")&&(e.removeEventListener("click",o),e.addEventListener("click",o))}var t=document.querySelectorAll(".vamtam-overlay-trigger"),a=[],i=window.VAMTAM.isBelowMaxDeviceWidth(),o=function(e){var t=e.currentTarget;s(t).hasClass("elementor-menu-toggle")&&(e=(e=s(t).closest(".elementor-row")).length?e:s(t).closest(".elementor-container")).hasClass("vamtam-overlay-trigger--overlay")&&(e.removeClass("vamtam-overlay-trigger--overlay"),t.removeEventListener("click",o),a.forEach(function(e){e.overlayTarget!==t&&e.closeTrigger!==t||(e.isActive=!1)})),s(".vamtam-overlay-trigger--overlay .vamtam-overlay-element:visible").length<2&&(s("html, body").removeClass("vamtam-disable-scroll"),s("#scroll-to-top").removeClass("hidden"))};t.forEach(function(e){var t;s(e).hasClass("elementor-widget-nav-menu")&&((t=s(e).find(".elementor-menu-toggle")[0]).removeEventListener("click",n),t.addEventListener("click",n),a.push({overlayTarget:e,closeTrigger:t,isActive:!1}),(t=s(e).closest(".elementor-row")).length||(t=s(e).closest(".elementor-container")),s('').appendTo(t))}),t.length&&(document.addEventListener("click",function(t){a.forEach(function(e){!e.isActive||t.target===e.overlayTarget||e.overlayTarget.contains(t.target)||e.closeTrigger.click()})},!0),window.addEventListener("resize",window.VAMTAM.debounce(e,200),!1))}window.VAMTAM=window.VAMTAM||{},s(function(){var e,t;window.VAMTAM.adminBarHeight=document.body.classList.contains("admin-bar")?32:0,/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&requestAnimationFrame(function(){document.documentElement.classList.add("ios-safari")}),navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")&&requestAnimationFrame(function(){document.documentElement.classList.add("safari")}),t=document.body,window.addEventListener("scroll",function(){clearTimeout(e),requestAnimationFrame(function(){t.classList.add("disable-hover"),e=setTimeout(function(){t.classList.remove("disable-hover")},300)})},{passive:!0}),document.addEventListener("click",function(e){e.target.closest(".vamtam-trigger-print")&&(window.print(),e.preventDefault())}),window.VAMTAM.resizeElements=function(){s("#page .media-inner,\t\t\t\t.wp-block-embed-vimeo:not(.wp-has-aspect-ratio),\t\t\t\t:not(.wp-block-embed__wrapper) > .vamtam-video-frame").find("iframe, object, embed, video").each(function(){setTimeout(function(){requestAnimationFrame(function(){var e=this.offsetWidth;this.style.width="100%","0"===this.width&&"0"===this.height?this.style.height=9*e/16+"px":this.style.height=this.height*e/this.width+"px",s(this).trigger("vamtam-video-resized")}.bind(this))}.bind(this),50)}),setTimeout(function(){requestAnimationFrame(function(){s(".mejs-time-rail").css("width","-=1px")})},100)},window.addEventListener("resize",window.VAMTAM.debounce(window.VAMTAM.resizeElements,100),!1),window.VAMTAM.resizeElements(),s(document).ajaxSuccess(function(e,t,n){"wishlist_remove"===n.data.split("&").map(e=>e.split("=")).reduce((e,t)=>(e[t[0]]=t[1],e),{}).action&&1===(n=JSON.parse(t.responseText)).status&&0===n.count&&(s(".vamtam-empty-wishlist-notice").show(),s("table.woosw-items").hide())})}),document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.load_script(VAMTAM_FRONT.jspath+"low-priority.js"),e(),jQuery("html").css("--vamtam-scrollbar-width",window.VAMTAM.getScrollbarWidth()+"px")},{passive:!0})})(jQuery),(v=>{window.VAMTAM=window.VAMTAM||{},window.VAMTAM.CUSTOM_ANIMATIONS={},window.VAMTAM.CUSTOM_ANIMATIONS={init:function(){},onDomReady:function(){this.VamtamCustomAnimations.init(),this.VamtamCustomAnimations.scrollBasedAnims()},VamtamCustomAnimations:{init:function(){this.registerAnimations(),this.utils.watchScrollDirection()},registerAnimations:function(){var t=this;["stickyHeader"].forEach(function(e){t[e].apply(t)})},stickyHeader:function(){var a=v(".vamtam-sticky-header"),i=this;if(a.length){1{10<=window.pageYOffset?o():e||window.addEventListener("load",function(){l||setTimeout(()=>{t(!0)},10)})};t();var u,h=null,w=window.scrollY;window.addEventListener("scroll",function(n){null!==h&&clearTimeout(h),h=setTimeout(function(){w=window.scrollY},500);var e=window.VAMTAM.debounce(function(){var e,t;"#document"===n.target.nodeName&&(v(a).find("a:hover").length||v(".vamtam-header-mega-menu:visible").length?c&&"fixedShownState"!==l&&s():(e=i.utils.getScrollDirection(),u!==e&&(w=window.scrollY),u=e,t=Math.abs(window.scrollY-w),window.scrollY>m&&t<20||("up"===e?10<=window.pageYOffset?"fixedShownState"!==l&&s():"noAnimState"!==l&&r():"down"===e&&(10<=window.pageYOffset||c)&&(t=!v(a).find(".elementor-menu-cart--shown").length,"fixedHiddenState"!==l)&&t&&o())))},25);window.VAMTAM.isMaxDeviceWidth()?requestAnimationFrame(e):"noAnimState"!==l&&r()},{passive:!0})}}},scrollBasedAnims:function(){var e=document.querySelectorAll(['[data-settings*="growFromLeftScroll"]','[data-settings*="growFromRightScroll"]'].join(", "));if(e.length){var i,l={},d=this,o=function(e){e.forEach(function(e){function t(){window.requestAnimationFrame(function(){r.style.setProperty("--vamtam-scroll-ratio",o+"%")})}var n=e.boundingClientRect.y,a=e.isIntersecting,i=e.target,o=Math.abs(parseFloat((100*e.intersectionRatio).toFixed(2))),e=l[i.dataset.vamtam_anim_id].lastScrollPercentage,s=l[i.dataset.vamtam_anim_id].lastScrollY,r=l[i.dataset.vamtam_anim_id].animateEl;a&&s!==n&&("down"!==d.utils.getScrollDirection()||e{for(var e=[],t=1;t<=50;t++)e.push(t/50);return e.push(0),e})();e.forEach(function(e){var t,n;i||(n={root:null,rootMargin:"20% 0% 20% 0%",threshold:a},i=new IntersectionObserver(o,n)),e.style.setProperty("--vamtam-scroll-ratio","1%"),e.classList.contains("elementor-widget")||e.classList.contains("elementor-column")?(t=e.parentElement).setAttribute("data-vamtam_anim_id",e.dataset.id):(v(e).before('
'),n=v(e).prev(".vamtam-scroll-anim-wrap"),v(n).append(e),t=n[0]),l[e.dataset.id]={lastScrollY:"",lastScrollPercentage:"",observeEl:t,animateEl:e},i.observe(t)})}},utils:{getAdminBarHeight:function(){return window.VAMTAM.adminBarHeight},watchScrollDirection:function(){var e=function(){return this.lastScrollTop=0,this.utils=this,{init:function(){},measure:function(e){this.direction=e>this.lastScrollTop?"down":"up"}.bind(this),mutate:function(e){this.utils.getScrollDirection=function(){return this.direction},this.lastScrollTop=e<=0?0:e}.bind(this)}}.bind(this);window.VAMTAM.addScrollHandler(e())},isTouchDevice:function(){var e=" -webkit- -moz- -o- -ms- ".split(" ");return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)||(e=["(",e.join("touch-enabled),("),"heartz",")"].join(""),window.matchMedia(e).matches)}}}},window.VAMTAM.CUSTOM_ANIMATIONS.init(),document.addEventListener("DOMContentLoaded",function(){window.VAMTAM.CUSTOM_ANIMATIONS.onDomReady()},!0)})(jQuery);